<!DOCTYPE html>
<html>
<head>
  <title>Popcorn Flickr Plug-in Demo</title>
  <!--
    ATTENTION

    This demo uses an API key obtained for testing the Flickr Popcorn.js
    plugin. Please do not use it for other purposes.
  -->
  <script src="../../popcorn.js"></script>
  <script src="popcorn.flickr.js"></script>
  <script>
    document.addEventListener( "DOMContentLoaded", function () {

      var p = Popcorn( "#video" )
      .flickr({
        start: 0,
        end: 5,
        username: "AniaSob",
        apikey: "d1d249260dd1673ec8810c8ce5150ae1",
        target: "flickrdiv"
      })
      .flickr({
        start: 5,
        end: 15,
        userid: "35034346917@N01",
        target: "flickrdiv"
      })
      .flickr({
        start: 20,
        end: 30,
        tags: "georgia",
        numberofimages: 8,
        target: "flickrdiv"
      })
      .flickr({
        start: 35,
        end: 45,
        userid: "35034346917@N01",
        tags: "georgia",
        numberofimages: 8,
        target: "flickrdiv"
      })
      .play();
    }, false );

  </script>
</head>
<body>
  <h1 id="qunit-header">Popcorn Flickr Plug-in Demo</h1>
  <p>Flickr images by 'AniaSob' will appear at 0 seconds and disappear at 5 seconds.
  <br />Flickr images by '35034346917@N01' will appear at 5 seconds and disappear at 15 seconds.
  <br />Flickr images tagged 'georgia' will appear at 20 seconds and disappear at 30 seconds.
  <br />Flickr images by '35034346917@N01' and tagged 'georgia' will appear at 35 seconds and disappear at 45 seconds.</p>
  <div>
    <video id="video"
      controls
      width="250px"
      poster="../../test/poster.png">

      <source id="mp4"
        src="../../test/trailer.mp4"
        type='video/mp4; codecs="avc1, mp4a"'>

      <source id="ogv"
        src="../../test/trailer.ogv"
        type='video/ogg; codecs="theora, vorbis"'>

      <p>Your user agent does not support the HTML5 Video element.</p>

    </video>
  </div>
  <div id="flickrdiv"></div>
</body>
</html>
